<?php 
class Payment{
	public $config = null;
	public $driver = null;
	public function __construct($config){
		$this->driver = strtolower($config['driver']);
		$this->config = $config;
	}
	public function getDriver(){
		include __DIR__."/pay/drivers/".$this->driver.".php";
		return new $this->driver($this->config);
	}
}
?>